<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>登录密码</title>
	</head>
	<body>
		<script>
			var rightPwd="123";
			var inputPwd=prompt("请输入您的密码：");
			while(rightPwd!=inputPwd){
				alert("您的密码有误");
				inputPwd=prompt("请您输入您的密码：");
			}
			alert("登录成功！");
		</script>
	</body>
</html>
